ArcGIS Runtime SDK for WPF - Library Reference
GetServiceAsync(String,Int32,Boolean,Action<LocalMapService>) Method
See Also 
ESRI.ArcGIS.Client.Local Namespace > LocalMapService Class > GetServiceAsync Method : GetServiceAsync(String,Int32,Boolean,Action<LocalMapService>) Method

path
The or Url of the Map Package.
maxRecords
The maximum number of records to return in response to a query.
enableDynamicLayers
true if the Dynamic Layers capability is to be enabled; otherwise false
callback
An Action delegate.
This method will either reuse an existing service for the supplied path or create a new service if one is not already running.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Sub GetServiceAsync( _
   ByVal path As String, _
   ByVal maxRecords As Integer, _
   ByVal enableDynamicLayers As Boolean, _
   ByVal callback As Action(Of LocalMapService) _
) 
C# 
public static void GetServiceAsync( 
   string path,
   int maxRecords,
   bool enableDynamicLayers,
   Action<LocalMapService> callback
)

Parameters

path
The or Url of the Map Package.
maxRecords
The maximum number of records to return in response to a query.
enableDynamicLayers
true if the Dynamic Layers capability is to be enabled; otherwise false
callback
An Action delegate.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.